﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ComparteTuTiempo.Models.CustomModels
{
    public class CustomCambioPass
    {



        [DisplayName("Contraseña Antigua")]
        [DataType(DataType.Password)]
        [Required]
        public string passold { get; set; }
        [DisplayName("Contraseña Nueva")]
        [DataType(DataType.Password)]
        [Required]
        public string pass { get; set; }
        //confirmar contraseña
        [DisplayName("Confirmar Contraseña")]
        [DataType(DataType.Password)]
        [Required]
        [Compare("pass", ErrorMessage = "La contraseña y la confirmación deben coincidir")]
        public string passconf { get; set; }
    }
}